package gao.xiaolei.dao;

import gao.xiaolei.entity.ReqDesignRunView;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository("ReqDesignRunViewDao")
public interface ReqDesignRunViewDao extends JpaRepository<ReqDesignRunView,String> {

    public boolean existsAllByTrqIdAndDesignIdIsNotNull(String trqId);

    public ReqDesignRunView findTopByTrqIdAndRunLogStatusIsNotNullOrderByRunLogDateDesc(String trqId);

}
